import org.springframework.beans.factory.BeanCreationException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class BeanProcessor implements BeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean,String beanName)
            throws BeanCreationException{
        System.out.println("3.执行bean的前置处理器");
        return BeanPostProcessor.super.postProcessBeforeInitialization(bean,beanName);
    }
    @Override
    public Object postProcessAfterInitialization(Object bean,String beanName)
            throws BeanCreationException{
        System.out.println("5.执行bean的前置处理器");
        return BeanPostProcessor.super.postProcessAfterInitialization(bean,beanName);
    }


}
